package com.infoauto.opc.gateway.service.impl;

import com.infoauto.opc.gateway.dao.StopLineReasonDao;
import com.infoauto.opc.gateway.model.ShopBase;
import com.infoauto.opc.gateway.model.StopLineReason;
import com.infoauto.opc.gateway.service.StopLineReasonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StopLineReasonServiceImpl implements StopLineReasonService {

    @Autowired
    private StopLineReasonDao dao;

    @Override
    public StopLineReason select(String conveyorID, String shiftID, String startTime) {
        return dao.select(conveyorID, shiftID,startTime);
    }

    @Override
    public int insert(StopLineReason stopLineReason) {
        return dao.insert(stopLineReason);
    }


    @Override
    public int update(StopLineReason stopLineReason) {
        return dao.update(stopLineReason);
    }

    @Override
    public ShopBase selectByConveyorNo(String conveyorNo) {
        return dao.selectByConveyorNo(conveyorNo);
    }
}
